Added a slower but more accurate search method.