Can now detect some input errors.