Remove the main file and set up functions accordingly.