Added basic support for reading and updating attributes