Initializing attribute structure after querying