Minor tweaks to const and power function.