Moment computation.