Updated to include necessary socket.io stuff.