Works with triplets