Make retry configurable