Add 0-term to lookup table and protect against use of negative values.