Implements save (finally)