Implement rename command.