Cleaned up code by adding main function
Turned off proxy: need to clean up in future