Added response functionality to connection