Added destroy method for fix memory usage