Generating tables for UI, work in progress.