Made changes to fit scoreboard modifications. Fully functional version.