added beat triggering