Making Deserialize method public