Updated to always create output directory