Implement add command.