Rearranged proxy settings initialization