Replacing constants for retry count and delay with config options. Change-Id: Ib37ff4af567292a5acab103de9d686d09a0dd6b0