Rename index. Fix function call.