Added XML serialization helpers