Adapt statistics

Use the XML configuration to perform the following actions (sorted by complexity) for statistics: