Add robustness to table process

Support tables with malformed class name or that contain
multiple classes.