Added addCommands() method