Converted logic section to table.