Added deserializing to the Viewer