Quick and dirty attempt to add proxy support.