Finalized version of TripleGem