Added API to schedule indexing, work in progress.