added functionality to Ultifarm controller for corporating with the rule