Added entry point for command line execution.