Modified sockets - still need to rewrite code to fit the standards