Changed to emit the full array of leases once, rather than doing an emit per line.