Add priority to the ensure index