Read/Write Library for PBG.