Make startAverage a param