Added setProxy function

This function allows the developer to change the proxy whenever he want.