Added a power function.