added PSF Validation code