Updated trigger for variables