Put main function to the bottom