Made copy and delete run in the same thread so we won't be trying to copy and delete files at the same time.