Added mean and std deviation functions