Added method to find longest signature with given name