Updates connection handling.