Move main program to program