Moving feed output to function