Reels algorithm