Add boolean to flagDirty