initial ThirdFlow stage, working, but could need some optimization.