Moved index_debug to index