Fix PopColor, Cleanup bool variable handling, remove hack which prevents multiple script threads from running concurrently