Added another flow constructor