Updated server connection handler. Fuck this shit!!!!