Adding the logic for T1.