Removed duplicated code to proxy connections and put it in one place