Fixed Popen
Added --log-file