Added retry logic.

Fixes #40 
Space between `function` and `()`