Added deferred tasks in stock export