Pcc tables

This is the correct version of #151  

See Alex's comments there.