Command-line parameter parsing added.