Simplify thread modification example