Handles building grading functions.