Was this max call serving a purpose previously?  It seems like it'd always return i+1