Completing the reading and deserializing part.