Implemented rudimentary log. Need to collapse sets in table.