Updates power analysis code
I need to update my jwdcode power analysis too