revision1
Changed to running average