Added closing tag function