Determine functions (mean, sum, ...) automatically ...