Now saves bg data as files, not array in data structure.