Some cleanups in pow