Pulled out the mean() and std() and added them to md.