Rewrote pcfb to not be so gnarly