Basic flow implementation

Yes, I will fix that.