Insert tasks at index (or append)