REF: now creating tmp.XX folder. Also reduced number of iterations.