Implemented scoring.