Added @volatile on retry count since its accessed now.