Automatic reconnect feature added