Memory management almost done.