Refactor run(), _powerchange, _lampchange