Implement retriable helpers

Still a work in progress

Fixes #4