Implement power computation.