Adding thresholds to diff_pos_max metric