Added deserialization of Entities.