Joost's code. Reboot incl Vrede in WPF. Needs serial (borrow from EPO-2 code).