Refactoring getting ready for 12bit dacs...