Added getNotDirty() function