Made ignoring 'doc' a bit better defined