Made changes to updating batch