Processing command line arguments.
Cleaning stuff up.