Fruitless attempt at properly passing data between threads