Got wait_for_connection implemented