DataMod: add possibility for max_sequence == 0