Table working now, though I have commented code just to make the table work to refer it later and have the grouping.