Add attr_reader for nodes