Exported reset function