Implement the rest of the new command.