Adjusted to serialize deprecation