Some general syntax and error checking before continuing.