Add triggerMethod and fix trigger.