Added -l <logfile> command line option.