Compute, update and retrieve means.