Used helper method for setting tags