Code cleanup
Implemented mechanism to set constraints that force the segment to be used if its not part of the gold standard and force it to not be used if it is part of the gold standard.