adding callback method to notify processing of each new batch of rows.