Added support multiply tags; refactoring.