Change in sync_monitor function