i'm also coding a extension that provides a hat block so this happens before you press the flag, pause or stop button (when project loads)
the "always" hat block: