Updating batch statement implementation.