Added support to read attributes.