Updated addAtribute method in preparation for preloading attributes