Added statistics functions