Expose save function