Made updates to feeding algorithm