Fixed grading script.