Restructured tag engine