Working on establishing and terminating connections