Added auto-increment for saving files