Add some threading tools