Reworked to put captions at the tops of tabels