Adding task framework, indexing, slice limiting, retry