Add defaultPlatform as a parameter.