Added PSF and error scripts