Initial main function