adding statistics integration