Improved in places where there could potentially be memory leaks.