Modify main program.