Made logfile an argument and increased verbosity.