Adding hg flow