first version on PlatformRunOnce() function.