@acehteam: The main function