Now uses stateful. However flare is being put on hold. Committing current code and stopping.