Switched thread IDs to ints.