Variable statistics

Allow disabling of statistics via attribute and maintain backwards compatibility.