Oh!
I didn’t really get how to interpret all those midi cc, values and such. So I didn’t think of record/overdub as separate commands. I’ve never messed with midi commands before only read a little about it. Your answer got me thinking in the right track. I think I got it now!
Thank you :)