remove objects
Properly passing arguments into threaded functions