Added mean computation