Added recursive pin type find method