Correctly check for scheduler and queue options being present without requiring queue first in the argument list. Thanks to Andrew Oler