Working. Flipped switches' pinout to normal orientation