Configure connection