Added debugging code for commands.