Fixed several issues with multiplayer support. #37