Only using one port now
Fixed functions for chunkrecord when dealing with sequences exceeding 32kb.