First working retryMethod prototype