Trying to track down a crash, so improving debugging functions.
Made really gruelling speed test.