Add more statistics code.