Adjusted to deprecation of serialize