Got the attributes working pretty well. Added validation for lookups and attributes.