Added thumb switch logic.