Implemented changes to facilitate picking up when a job halts midway. Concretely, allowed a new start time to be specified, which corresponds to the time when the job was halted; allowed the output file to be written in append mode; changed the order in which the query results are requested, so that they are ascending in time and form a continuously growing timeline in the output file