Return the intermediate table as well