Refactoring feed functions