Reconnect logic now works