Moved to allocating some big things from the heap. Should blow stacks less now.