Added the idx_used thing to dm lookup