Fix for #155 Add markAsDirty() method