Deserializing function now recursive.