Rename local variables named 'index' elsewhere