Added powMod
