Thanks, this is much better. I didn't even know xpcshell could take arguments until yesterday.