Updated trigger script