Implemented trigger based on tranches.

Closes #118