Added a powers.array this will reduce run time