Changed tunnel segLen to its own constant.