Replaced two calls to npksum in scoef with one