Add in header details and a new ave power function