Added logfile output.