Fix onlyIfChanged, adjust Periodic