Added --try-resume option