First attempt at a feed algorithm