added the possibility to prefix the file with zeros based on the last timestamp of the previous file