Destroy function added