Yeah, there is something I didn't mention that hurts the checking for -logfile (the most obvious). I got my script to work however checking for -logfile doesn't work because the user might forget to use the -logfile option and I have to check for that too.