Refactored index manipulation methods, added zero-downtime index resetting