Added one line for logging
Changed update_index_status function definition