Add platform switch.