Add script to convert old format to new format