Fix power management and supress warning and remove not need paramaters