TODO: Fix the switch command.