Set up the main file