Fixed a few things in the command framework.