Basic flow implementation

Why not None instead of -1?