Added escape statements for triggers