Added option to perform only step 2 by resuming from a previous step 1 run.