Added backwards compat for add_command.