Threshold for QTB

NOTE: Some of the fits are broken, but I don't think they have big influence on the results.