Added code for write_progress_log_to_disk