Hacked version with minimal or no leak
Another fairly non leaky version with more enabled
Found another memory leak
Remove test code