Implemented a function to save .spr file