Implemented save system.