That was my first approach, then I thought I might have to loop over power twice, thats why.