Implemented reconnecting, improved autocomplete.