Added index to rank column for faster ordering