Support functions for retry_backoff

This allows to do things like exponential back-off or whatever you like.