Fixed exceptions by moving table logic out into the open.  Need to test the karyotype tables.