Added socket creation