Initial work on deserialisation.