Averagepower code moved to mapreduce