added missing argument validation.