Refactored the way powers are generated