Updated tag protocol to store associated values alongside each term