Fix confidence generation
Merge remote-tracking branch 'origin/master'