Do not index past the end of the chain table
Add const