Add functionality to queue indexing.