Threading and minimal bugs