Tracking algorithm
In case dac goes out of existence
Cleanup main