Added a dispose method that I should've remembered.