Added a missing parameter check.