Updated batch example