Add save and open functions.