Forked gnode and modified to work with flow instead of regenerator