Add Threads to an existing program