This version adds table-formatted output