Add exponential decay option
Retry on 500 internal server error
Merge branch 'exponential_decay'