Lots of stuff around retries