Added retry logic.

Fixes #40 
I might be missing context, but is there a reason this has to be at least 1 second? Similarly, does `retries` have to be at least one? I would think no retries is a viable option.