Add platform code