Added setpower function