Fighting with memory leaks.