Flushed out save function