Added get_attrs(), for efficient retrieval of multiple attributes.