added configurable retry delay