Completed basic scoring functions.