Added more functions to power.c.