Added multiplayer support

Added multiplayer support.