Added a function for creating a socks proxy