Addded threshold option.
Fixed conflict