Added an optional -samples command line option.