There are almost no memory leaks any more! (almost)