delays and retries as parameter