Upload main program