#506 Add support for disabling statistics