Changed the DOM manipulation.