Improved dynamic statistic to be able to use dynamic fields for changes.