Remove extraneous main function