Added a check for factor == "U".
Simplified folder structure for resampling results.