Implemented the possiblilty for using triggers.