Deserialize method added.