A complete restructuring of `pow`