Better pinMode tracking