Fixed tag markup. Added conditional settings check.