Old MTGA code from my PhD research -- not maintained!