Added instantiation of serialization function for compatibility