Re: Dynamically choosing the main function