New structure of main.