Added retake quiz detection