Added checking of variable names to the checkOptions functions.