Bugsolve and Better implementation of initial disconnect
Bugsolve and Better implementation of initial disconnect, debug code removed