Change a main function