Removed unused import
Proper cleanup of heap usage