Make the entry point a function.