Implement modules and command line options.