Add autobackup functionality for battle codes.