findThreats function seems to be working now.