[Refactoring] Implemented nicer smart tag system.
Updated nrefactory.