Added segment-maker well-formedness check.