Added powermanager class