What is CommandType? Is this a built-in enum, or was it implemented by you?
Also, what is the type of Command.CommandType?