Add support function updateScore