Added generic checkPcr() method that will replace checkPcr1() and checkPcr2()
Replaced checkPcr1() and checkPcr2() with generic checkPcr() method.