Properly read out switch states