             else {
                 presentCorrectAlert()
             }
+            alreadyMarkedIncorrect = false
         }
         // If not correct
         else {
+            if (!alreadyMarkedIncorrect) {
+                incorrectQuestions += 1
+                alreadyMarkedIncorrect = true
+            }
             presentIncorrectAlert()
         }
     }

    }
    
    func presentFinalAlert() {
        // Set up "invalid date" alert
        let alertController = UIAlertController(title: "Correct!", message: "You've completed this test!.", preferredStyle: UIAlertControllerStyle.alert)
        let okAction = UIAlertAction(title: "Finish", style: UIAlertActionStyle.default)
        {
            (result : UIAlertAction) -> Void in

    var numQuestions = defaults.integer(forKey: "num_questions")

    var incorrectQuestions = 0;
    
    var alreadyMarkedIncorrect = false;
    
    // Declarations
    var timer = Timer()
