Moved feed into it's own function