Now uses promises
copied promises to original file