Added facilities to serialize relations to disk.