Modifying thread identifier passing