Geraint's pow() mods