Remove unused imports
Rewrited indexing command for using new index manager