Generate event only if there is a value change