Added a parameter for Bayes threshold
Default is 0.9