The previous commit did not add the confidence parameter in correctly. Updated to do it properly.