Added a dynamic allocator.  No more seg fault issues.