Auto onset detection, need to modify code to make it manually move /drag the detection marks to the right slots