Added basic scoring logic.