Added restriction so the while loop in all verifications can run at most 20 times.
Corrected typo.