Inserted function to find methods