Removed redundancy of Attribute IDs. Big refactor.