Forgot to remove a test print statement. Also, it still needs to check if terminal is valid before switching.