Add constructor for CommandController.