Added an option to set retrying schedule duration