Added weightedModelsParameters function.