More efficient leaderboard code implemented