Deserialization function added for convinience.
Deserialization function updated.