Reordered pin change to eliminate blink