Full flow implemented. Still buggy.