Makes the code compile and fixes the food issues.