Simplify the input parameters for main.