Modify commands and add ability to create subcommands.