Changed the way lookup worked to only substitute indices with urls.