Added experimental NAT segment, added rebuildMessage function