Change the retry logic to write a limit file, able to source limit from files by indicating with @filename