Added some methods for looking up the type of a command.