Multiple table support.

Modified checkTables function to allow support for multiple tables per
page.