Currently -1 is used as a sentinel value. Make this configurable.
Currently -1 is used as a sentinel value. Make this configurable.