Made it work with singleplayer as well as multiplayer.