Moved averages server side