Finish implementing support for commands.