About to branch
Done with statemachine
Merged new statemachine
Standard threads seem to be working.