Added support for messages greater than 127 bytes