Added command argument validation.