Successfully threaded minContext through, but actually using it causes a segfault. Needs debugging.