Add client side syncing logic