Implemented some scoring utilities.