Eliminated memory leaks.