Added configuration to run the indexer with maintenance
Moved the maintenance check to the hook instead of manual run