Changed retry method