Changes platform handling and context setup how it should be.