After calling repack, code checks the last modification time vs the current time. Only proceeds to delete old file and move repacked file after 1s has passed.