Modifying algo
Able to run searching