Added functions to set tags