Updated findFunctions to use the new structure search methods