Added room serialization functionality.