Removed dependence on PlatformUtils.