Updating the addThread calls.