Worked on memory leaks.