Modified generateYaplotFile.