Added confidence values, tweaked getThreat - these need a bit more work but are working great so far :)