Basic flow implementation

Yes, I will change that.