Addretry

Retry logic added and tested working. Merging in and creating new release.