Add config option for retry