Updated according to review comments and set default threshold to 1.0