Code used for TCT job