Fixed segfaults but minContext does not appear to be beinbg respected.