Changed sl to ml as it is more meaninglful as the message length and less likely to be confused with the
length of a single segment not all the segments together which it is