Problem: multiple simultaneous calls checking target address but it relies on global variables