Convert save_serial() to work like save_index(), and add a