Separate connecting logic