Added support for multiple simultaneous connections. Still can't get the server working, so I'm not sure if it's working correctly.