Automatic reconnect implemented