Seems like we should take an index argument.