Handled InvalidParametersError (issue #45)