Added assertion that catches erroneous value.