Refactoring find method.