Finished code for the functions that correspond to some specific command line options.