Forogt to add the logic to check to make sure that the imestamp was always incrementing.  Small bug with the first run variable and setting it incorrectly.  Corrected the program to ensure it always exits with code 0 if it was a batch file.