Adding serialization of ServiceMessage