Nicer way of dealing with connection state