Fixed bug: messages need to be serializable