Add support for retries
Merge pull request #3 from fkuo/master

Add support for retries