Moved functions to outside file. Functions for proxy settings.