Added basic statistics computation