Replace Temp with Chain