Added logging for retry