Thanks! But increaseRetryCounter() requires cursor to be open.