Adding socket connection