Implement ATS code for t1_lib changes