Export the dispose function