Add scoreboard function