Add more precise control of replaced elements.