Remove the main function, and remove unnecessary parameters.