Made find_license function