Auto sync script