Non-working attempt at improvement
Working; slight simplification of loops
Get that power simplification working