Removed use of returned index