Add some tools for stat