Adding hasnot criteria