Changed to copy to output