Added mean and median outputs