Enforcing max retry and retry delay.