Sync client with the server