added hard limit on transmission length