Added trigger() functionality