Added score functions.