added logic to deferred tasks to update read models.