Add applyChange and revertChange methods