Use constructor for unserializing