Added algorithm to find a PASS