Destroy objects function added