Added class to implement serializable messages