Update findfunction to provide useful output