Added contents parameter to elements.