Working on a better way to intellegently add attributes to CDF files