And the other thing you mentioned...
I need to build a generic test circuit before posting code