Add the main program to control all the workflow