Data averaging now working. XD