* Fixed a bug due to changes to ptb.py
 * Adding features for table calculations