Adding ids to objects, fixing ThreadPool bug