Add generic API for setting and getting defined tag values