Adds thread skeleton