Is there some way that I can "hook" a variable so that when it's value changes, some sort of callback is called that lets me know? I thought of making a loop that constantly checks the variable in a different thread, but this would hurt performance pretty bad. Is there a way I can accomplish this without sacrificing much performance?