fixed the return for the pscDelay function to eliminate the trap in pscWait()