Fixing templated values
Adding the ability to debug rules