More advanced statistics. Added support for average chage.