Adding onlyexposed back and updating the configuration instead