Imported connect.c.