Inserted var, fixed sockets.swap