Moved TagProcessing's code into Parser