Add support for text with more than  2^15 characters