Added response factory and input parameter control for the controller