Debugging memory leaks, crashes. Rewrite otherwise done.