Refactoring for clarity. The advanced interface now successfully creates the results table.