Added filtering to 'dndoc'