Changed to copy only when output changed