1406242259: add statistics code