Added some socket stuff.