Updated  parameter validation logic to check for numeric values where appropriate.