Move retry limit to be a constant