Implement toggle command.