Improve copy task API.