First version; fixed threshold