Refactored reithproxies script - added variables