Added findidbyname function