Flipped switch and loops to decouple compare methods