No real changes, just use a more appropriate parameter name, as it's a column index and not just "index".