Removing unnecessary attributes.