Updated the code to create the psf output files.