Use object serialisation instead