Modified WriteSimulatedDataFIle();