Added cross-platform switch.