The max seq allowed according to the XEP is 65535, therefore we must modulo using 65536 to allow that value.