Optimized PowerUtils a little bit.