DNN7 support. Added a new setting for optional tags.