Implement put command.