Added destroy function to module