Implemented division of messages into chunks. Closes #8