Put the interpreter in its own function rather than using a case of.