Add macro lsmaxlength