Removed manual memory management.