Add platform check