Made rebuild of indexes synchronous.