Generates the table