Changed the interface of a command class.