Add the addCommands method.
Recursive commands adding.