Added support for accessing object attributes