Add main() wrapper for command line execution.