Actually, I guess you also need to move the code that initializes $xstartup after the ParseOptions call.
Actually, I guess you also need to move the code that initializes $xstartup after the ParseOptions call.