Added headers every 40 rows