Beginnings of refactor for MondoCommand. Compiles, but probably doesn't work.