Function recordAttemptUsage