Added restore method to serializer