added functional retry option
Merge pull request #2 from peterkhayes/master

added functional retry option