Changed the way user-provided parameters are validated.