Changed proxy model to one based on sockets