Solved the problem where find() was getting called all the time.