I managed to do a bit more refactoring tonight, keeping the flow-control for the state string as a C datatype for as long as possible. Getting closer to 0.0.6, I think.