Working with connection objects