Modified to try different approach to creating temporary folder