Adding tools for statistics