Add a new script to the EndFlag node