Start adding basic connection handling.