Work on bad accesses and then memory leaks.

I think you mean ready instead of active, but this could just be cleaned up whatsoever.