Minor change to findnodes (refactored a method for inheritance
purposes).