Separated connection and functions