Refinement of validity check of output in outputSGP