Added support for UserData serialization