Functional with connector calculations, but not sure whether that function works correctly