Manjyot, Lokesh| Added code to wait for a value to appear while updating schedules