waitTables method added