Make copy rule more general.