Add function set_flow
Merge pull request #48 from powerist/working

Add function set_flow