Sync Subscriptions algoritm