Would be nice to check that the previous value is not the same otherwise it could be already this same value