Replaced TCP/IP server with websocket server. Also added a better scanning algo