Added score functionality