Added wait for ajax ad hoc step.