Initial connection handling.