Ensure resources inputs get passed to the SGE controller. Enforces reserved resources. Thanks to Zhengqiu Cai