Make default retry count configurable