Make set_power more reliable