Add custom Thread  structure.