Put auto IR program into template