Wrap function calls into a main() function.