Added two writeDataToTimeStampedFile variants