Switched to native pow function