Much simpler to put the tag array at global scope, or qualify it static, so that it doesn't get reinitialised each time loop () executes.
Much simpler to put the tag array at global scope, or qualify it static, so that it doesn't get reinitialised each time loop () executes.