Bz/add thread pattern