added passing of retryInterval and maxRetries to every newly created thread