Declared paramToFile() method as static in order to avoid syntax strictness warnings.