Adding script to setup external trigger properly