Allow retry to be given as parameter to method