Add checks for invalid values.