Update #78: Implement trigger engine. End the phase1. Need to test and debug it.