Added checks for food spoiling setting