Added logfile option