Add replace directive.