New tag processing algorithm to allow embedded uservar tags