Changed a lot of functionality, everything is based on triplet extraction now.