Added wait RESR API method