Using previous method for creating temporary files.