Finished generating attribute hash table (not tested).