Moved debug message into addCommands