Add gob support.