Added debug message to show total amount processed