Updated with avarge now calculated serverside and typo.