Fixed copy out task to handle multiple calls.