Ported a bunch of the masses that are used only in the game.