Added proxy support and set more mandatory flags.