Modal Onset Detection now working. Not tested though...