Added timestamp to output + log file for failures