Added RetryTask functionality