Updated script to load legacy data