Add letterChanges function