Tidy up debug command.