Work on bad accesses and then memory leaks.