Changed struct to include sockets