Added trigger functionality