Changed eat_if to eat_while. That's how it's used, anyway