ENH: Add trigger stamping function