Added getters and setter for elements and attributes.