Added option to also setup rules and input ids