WIP
Add logging
Add more logs
Logging refactorin
Add reindex function !