Update MainProgram