Testing for commands, and being helpful with err.