Added tag function.